package com.hjt.gulimall.product.feign;

import com.hjt.common.to.es.SkuEsModel;
import com.hjt.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * Es检索服务
 * @author:97007
 * @date:2021/9/20 9:49
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {
    // 上架商品
    @PostMapping("/search/save/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModelList);
}
